package com.zl.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 角色权限中间表Mapper
 * @InterfaceName: RolePermissionMapper
 * @author: suke
 * @since: 2021/1/11 15:53
 */
@Mapper
@Repository
public interface RolePermissionMapper {

    /**
     * 
     * @Title: 根基权限id删除
     * @param pid  权限id
     * @return void
     * @author: suke
     * @since: 2021/1/11 15:55
     */
    public void  deleteByPid(Integer pid) throws Exception;


    public  void insert(@Param("rid") Integer rid,@Param("pid") Integer pid) throws Exception;



    /**
     *
     * @Title: 根基角色id删除
     * @param rid  角色id
     * @return void
     * @author: suke
     * @since: 2021/1/11 15:55
     */
    public void  deleteByRoleid(Integer rid) throws Exception;
}
